# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-html-linkextractor
_pkgname=HTML-LinkExtractor
pkgver=0.13
pkgrel=15
pkgdesc='Extract links from an HTML document.'
arch=('any')
url='http://search.cpan.org/dist/HTML-LinkExtractor/'
license=('GPL' 'custom')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/P/PO/PODMASTER/$_pkgname-$pkgver.tar.gz")
sha512sums=('30d3f0688c6b13bd81b85ee9f1bb6987871d2718e051179fd2fc0c2d15190478f4c78a1a71b074ae444b45c1b7fb1ef05675645132fef1b4b892016b69a24fc3')

build () {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

